package com.heima.method;

public class Demo16 {
    public static void main(String[] args) {
        int a=12;
        double b;
        System.out.println("调用方法前:"+a);
        b=tha(a);
        System.out.println("返回后:"+b);

    }
    public static double tha(double a){
        System.out.println("调用方法中:"+a);
        int b=(int)a;
        System.out.println("返回前:"+b);
        return b;
    }
}
